//引入接口  //postminelistApi
import { getCommunityListApi, getQueanswerApi } from "../../utils/api";
//社区问答
const actions = {
  getCommunityList({ commit }) {
    return new Promise((resolve) => {
      getCommunityListApi().then((res) => {
        resolve();
        commit("getCommunityList", { list: res.result });
        // console.log(res.result,'getCommunityList');
      });
    });
  },




  //客户详细问题信息
  async getQueanswer({ commit },payload) {
    // console.log(payload);
    const res = await getQueanswerApi({
      // uid: '0002',
      // queid:'01'
      queid:payload.queid,
      uid:payload.uid
    });
    commit("getQueanswer", { data: res.result });
    console.log( res.result,'getQueanswer');
  },







};

export default actions;
